//
//  ThumbImageView.m
//  coocsless
//
//  Created by fabian on 02.03.11.
//  Copyright 2011 roboboogie. All rights reserved.
//

#import "ThumbImageView.h"



///////////////////////////////// ALLES ANDERE

@implementation ThumbImageView

@synthesize imageName;
@synthesize home;
@synthesize delegate;
@synthesize someId;


- (id)initWithImage:(UIImage *)image {
    self = [super initWithImage:image];
    if (self) {
        [self setUserInteractionEnabled:YES];
        [self setExclusiveTouch:YES];  // block other touches while dragging a thumb view
    }
    return self;
}


- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
  
}

- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {

}

- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
	
	if ([[touches anyObject] tapCount] == 1) {
            [delegate thumbImageViewWasTapped:self];
    }
    
}

- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event {

}



@end


